<ul>
<?php foreach ($categories as $category): ?>
  <li>
    <?php echo link_to(image_tag('feed.png', array('alt' => __('Atom feed for category %category%.', array('%category%' => $category->getName())))), 'rss_category_last_posts', array('category' => $category->getShortSlug(), 'sf_format' => 'atom'), true) ?>&nbsp;
    <?php echo link_to(truncate_text($category->getName(), 25) .' ('. $category->getPostsCount(true, $sf_user->getCulture()) .')', 'blog_by_category', array('category' => $category->getShortSlug())) ?>
  </li>
<?php endforeach ?>
</ul>